package vip.xiaonuo.client.modular.testPaper.service;

import com.baomidou.mybatisplus.extension.service.IService;
import vip.xiaonuo.client.modular.testPaper.entity.ClientTestPaper;
import vip.xiaonuo.client.modular.testPaper.param.ClientTestPaperIdParam;
import vip.xiaonuo.client.modular.testPaper.param.SubmitTestPaperParam;
import vip.xiaonuo.client.modular.testPaper.result.TestPaperResult;

public interface ClientTestPaperService extends IService<ClientTestPaper> {

    /**
     * 创建试卷
     */
    ClientTestPaper createSimulateTestPaper(String tblExamPaperId);

    /**
     * 获取试题详情
     *
     * @param clientTestPaperIdParam 试题详情请求参数
     * @return 获取试题详情
     */
    TestPaperResult getTestPaperInfo(ClientTestPaperIdParam clientTestPaperIdParam);

    /**
     * 提交试卷
     *
     * @param submitTestPaperParam 提交试卷参数
     */
    ClientTestPaper submitTestPaper(SubmitTestPaperParam submitTestPaperParam);

    /**
     * 获取试题详情
     *
     * @param clientTestPaperIdParam 试题详情请求参数
     * @return 获取试题详情
     */
    TestPaperResult getTestPaperAnswerInfo(ClientTestPaperIdParam clientTestPaperIdParam);

}
